<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>component-1组件实例</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>component-1组件实例</h1>
    <hr>
    <div id="app">
        <pxs v-bind:here="message" data-id="8"></pxs>
    </div>

    <script type="text/javascript">

        var app = new Vue({
            el:'#app',
            data:{
                message:'pixellion'
            },
            components:{
                "pxs":{
                    template:`<div style="color:red;">pxs是{{here}}id号是{{dataId}}</div>` 
                    ,props:['here','dataId']
                }
            }

        })
    </script>
</body>
</html>